jade.content.abs
Class AbsObject
java.lang.Object
|
+--jade.content.abs.AbsObject
- Direct Known Subclasses:
- AbsContentElement, AbsTerm
- public class AbsObject
- extends java.lang.Object
- implements Serializable
- Author:
- Federico Bergenti - Universita` di Parma
- See Also:
- Serialized Form
|
Constructor Summary |
protected |
AbsObject(java.lang.String typeName)
Constructor |
|
Method Summary |
void |
dump()
|
protected void |
dump(int indent)
|
AbsObject |
getAbsObject(java.lang.String name)
Gets the value of an attribute of the object. |
int |
getCount()
Gets the number of attributes. |
java.lang.String[] |
getNames()
Retrieves the names of all attributes. |
java.lang.String |
getTypeName()
Returns the name of the type. |
boolean |
isGrounded()
Tests if the object is grounded, i.e., if its attributes are not
associated with variables. |
void |
set(java.lang.String name,
AbsObject value)
Sets an attribute of the object. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AbsObject
protected AbsObject(java.lang.String typeName)
- Constructor
- Parameters:
typeName - name of the type of the object.
getTypeName
public java.lang.String getTypeName()
- Returns the name of the type.
- Returns:
- the name of the type.
set
public void set(java.lang.String name,
AbsObject value)
- Sets an attribute of the object.
- Parameters:
name - name of the attribute.value - value of the attribute.
getAbsObject
public AbsObject getAbsObject(java.lang.String name)
- Gets the value of an attribute of the object.
- Parameters:
name - name of the attribute.- Returns:
- value of the attribute.
getNames
public java.lang.String[] getNames()
- Retrieves the names of all attributes.
- Returns:
- the name of the attributes.
isGrounded
public boolean isGrounded()
- Tests if the object is grounded, i.e., if its attributes are not
associated with variables.
- Returns:
- if the object is grounded.
getCount
public int getCount()
- Gets the number of attributes.
- Returns:
- the number of attributes.
dump
protected void dump(int indent)
dump
public void dump()